package fun.codefarmer.pm.mapper;

import fun.codefarmer.pm.model.MenuRole;

import java.util.List;

/**
 * 
 * @ Descriotion TODO
 * @ author  codeFarmer_z
 * @ 公众号：码农教程
 * @ Date 2022/3/26 21:47
 **/
public interface MenuRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MenuRole record);

    int insertSelective(MenuRole record);

    MenuRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MenuRole record);

    int updateByPrimaryKey(MenuRole record);

    List<Integer> getMenuIdsByRoleId(Integer rid);

    int deleteByRid(Integer rid);

    int insertRidAndmenuid(Integer rid, Integer[] menuids);
}